<script type="text/javascript" language="javascript" charset="utf-8">
$(".menu-wrap li").removeClass("active-link");
$(".menu-wrap #teacher").addClass("active-link");
</script>
<!-- 记录信息 -->	
<div class="common-tit">
	<h2><%= @teacher_name %>-记录信息</h2>
	<span>导师管理 > 导师列表 > 记录信息</span>
</div>
<div class="tut-list tut-ld">
	<h3>上课记录</h3>
	<div class="curlist-con">
		<div class="scrollbox">
			<table>
				<thead>
					<tr>
						<th class="trec-ct">上课时间</th>
						<th class="trec-cn">课程名称</th>
						<th class="trec-ctype">课程类型</th>
						<th class="trec-room">教室</th>
						<th class="trec-order">预约数</th>
						<th class="trec-sign">签到数</th>
						<th>签到时间</th>
					</tr>
				</thead>
				<tbody>
					<% for tmp_hash in @teacher_course_record_array %>
						<tr>
							<td><%= tmp_hash["course_time"] %></td>
							<td><%= tmp_hash["course_name"] %></td>
							<td><%= tmp_hash["course_type"] %></td>
							<td><%= tmp_hash["room_name"] %></td>
							<td><%= tmp_hash["course_appointment"] %></td>
							<td><%= tmp_hash["course_check_in"] %></td>
							<td><%= tmp_hash["teacher_sign_time"] %></td>
						</tr>
					<% end %>
				</tbody>
			</table>
			<div class="apple_pagination" id="will_page">
			    <%= will_paginate @teacher_course_record_array, :container => false %>
			</div>
		</div>
	</div>
</div>
<!-- 前台权限控制 flydragon -->
<% if !current_user.is_receptionist? %>
<div class="tut-list">
	<h3>工资记录</h3>
	<div class="curlist-con">
		<div class="scrollbox">
			<table>
				<thead>
					<tr>
						<th class="trec-time">时间</th>
						<th class="trec-wages">基本工资</th>
						<th class="trec-com">提成费用</th>
						<th class="trec-go">超出目标奖金</th>
						<th class="trec-pri">私教费用</th>
						<th>总计</th>
					</tr>
				</thead>
				<tbody>
					<tr>
						<td><%= @teacher_salary["month"] %></td>
						<td><%= @teacher_salary["base_salary"] %></td>
						<td><%= @teacher_salary["course_check_all"] +  @teacher_salary["course_fixed_student"] + @teacher_salary["course_ladder_student_all"] %></td>
						<td><%= @teacher_salary["courese_index_bouns"] %></td>
						<td><%= @teacher_salary["private_teaching"] %></td>
						<td><%= @teacher_salary["sum"] %></td>
					</tr>
				</tbody>
			</table>
			<div class="apple_pagination" id="will_page">
			    <%= will_paginate @teacher_course_record_array, :container => false %>
			</div>
		</div>
	</div>
</div>
<% end %>

<script src="/assets/js/common.js"></script>